package com.yls.rest;

import org.springframework.aop.aspectj.AspectJAfterThrowingAdvice;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestRest {

    @GetMapping("/test")
    public String test() {

        String[] aaa = {"1", "2"};
        System.out.println(aaa);
        return "Hello Jenkins! v2.0.0";
    }

    public static void main(String[] args) {
        String[] aaa = {"1", "2"};

        String aa = "";
        int a = 10;
        for (String str : aaa ) {
            System.out.println(str);
        }

        for (int i=0; i<aaa.length; i++) {
            System.out.println(aaa[i]);
        }

    }
}
